﻿using Basic.UserModel.DB;
using Basic.UserModel.User;
using Basic.UserRemoteModel;
using Basic.UserRemoteModel.User.Model;
using WeDonekRpc.Model;

namespace Basic.UserRepository
{
    public interface IUserRepository : IUserBaseRepository<DBUserInfo, long>
    {
        Result[] Query<Result> (UserQueryParam where, IBasicPage paging, out int count) where Result : class, new();
        long RegUser (UserAdd add);
        void SetPwd (long userId, string pwd);
        void SetState (long id, UserState state);
        void SetDatum (long userId, UserSet datum);
        void SetLastLoginDate (long[] userId);
    }
}